<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">


<div class="col-sm-12 search-collapse">
    <form id="formId">
        <div class="select-list">
            <ul>
                <li>
                    姓名：<input type="text" name="userName"/>
                </li>
                <li>
                    <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                    <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                </li>
            </ul>
        </div>
    </form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
    <!--<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:paiming:export">
        <i class="fa fa-download"></i> 导出
    </a>-->
</div>
<div class="col-sm-12 select-table table-striped">
    <table id="bootstrap-table" data-mobile-responsive="true"></table>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    /*   var editFlag = [[${@permission.hasPermi('system:meetingSystem:edit')}]];
       var removeFlag = [[${@permission.hasPermi('system:meetingSystem:remove')}]];*/
    var prefix = ctx + "system/geren";

    $(function() {
        var options = {
            url: prefix + "/list",
            /*  createUrl: prefix + "/add",
              updateUrl: prefix + "/edit/{id}",
              removeUrl: prefix + "/remove",*/
            /*exportUrl: prefix + "/export",*/
            modalName: "个人排名",
            showExport: true,
            columns: [{
                checkbox: true
            },
                {
                    field : 'ming',
                    title : '个人排名'

                },
                {
                    field : 'userName',
                    title : '姓名'
                },
                {
                    field : 'bonusPoints',
                    title : '加分'
                },
                {
                    field : 'points',
                    title : '减分'
                },
                {
                    field : 'totalCount',
                    title : '总积分'
                }
            ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>